package dao.region;

import java.util.List;

import vo.RegionVO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class RegionDAOImpl implements RegionDAO{

	private SqlMapClient sqlMapClient;

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}

	@Override
	public List<RegionVO> getAllRegion() throws Exception {
		return sqlMapClient.queryForList("region.getAllRegion");
	}
	
	@Override
	public int getTotalCount() throws Exception {
		return (int) sqlMapClient.queryForObject("region.getTotalCount");
	}
}
